-- GENERATED SPELL FOR [Gurubashi Blood Drinker] --


function spell0_11353(pUnit, Event) --@Blood Leech,Heal--
pUnit:FullCastSpellOnTarget(24437,pUnit)
pUnit:RegisterEvent('Sorts_11353', 607, 1)
end

function spell1_11353(pUnit, Event) --@Drain Life,Drain--
pUnit:FullCastSpellOnTarget(24435,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_11353', 5000, 1)
end

function Sorts_11353(pUnit, Event)
local choix_sorts_11353 = math.random(0, 1)
if choix_sorts_11353 == 0 then
pUnit:RegisterEvent('spell0_11353', 1, 1)
end
if choix_sorts_11353 == 1 then
pUnit:RegisterEvent('spell1_11353', 1, 1)
end
end

function mob11353_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11353', math.random(1500, 3000), 1)
end

function mob11353_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11353_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11353_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11353, 1, 'mob11353_Action')
RegisterUnitEvent(11353, 2, 'mob11353_Leave')
RegisterUnitEvent(11353, 3, 'mob11353_Kill')
RegisterUnitEvent(11353, 4, 'mob11353_Die')
